package com.sundhage.gui
{
	import flash.display.*;
	import flash.events.*;
	import flash.utils.*;
	
	public class JSCheckboxAssets extends JSAssets
	{
		private var background:BitmapData;
		public function getBackground():BitmapData { return bmpCopy(background); }
		public function hasBackground():Boolean { if (background) return true; else return false; }
		
		private var selected:*;
		public function getSelected():* { return copy(selected); }
		
		private var unselected:*;
		public function getUnselected():* { return copy(unselected); }
		
		public function JSCheckboxAssets(o:Object)
		{
			for (var prop:* in o) {
				try {
					var d:* = o[prop];
					if (getQualifiedClassName(d) == "flash.display::BitmapData" || getQualifiedSuperclassName(d) == "flash.display::BitmapData")
						this[prop] = bmpCopy(o[prop]);
					else
						this[prop] = copy(o[prop]);
				} catch (e:Error) {
					trace("JSCheckboxAssets::constructor -> property "+prop+" does not exist.");
				}
			}
		}
		
	}
}